import { get, post, downloadDoc, downloadExcel } from '@/utils/request'

export default {
  page: query => post('/api/admin/newExamPaperAnswer/page/v1', query),
  read: id => post('/api/admin/examPaperAnswer/read/' + id),
  edit: form => post('/api/admin/examPaperAnswer/edit', form),
  usersDeparts: query => get('/api/admin/dept/list/user/kv', query),
  downloadWord: query => downloadDoc('/api/admin/examPaperAnswer/export/employeeResults', query),
  downloadExl: query => downloadExcel('/api/admin/newExamPaperAnswer/export/excel', query),
  deleteAnswer: query => get('/api/admin/newExamPaperAnswer/del', query)
}
